package cn.dada.dadarecipes.user.user.mapper;

import cn.dada.dadarecipes.user.user.pojo.vo.UserVO;
import cn.dada.dadarecipes.user.user.pojo.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    UserVO queryUserByUserName(String userName);
    List<Long> selectUserIdByUserName(String userName);

    void insert(User user);

    void update(User user);

    void delete(Long userId);

    void updateUser(User user);

    List<UserVO> queryUserById(Long userId);

    User findByPhone(String phone);

    UserVO queryUserByPhone(String phone);


    User findByUserName(String username);
}
